require('./index.css');
import _tool from 'util/tool';

const page = {
    init() {
        this.bindEvent();
    },
    bindEvent() {
        const _this = this;
        const pushCart = function () {
            debugger
            _tool.saveResource($(this));
        };
        $('.btn-cart').on('click', function () {
            _tool.pushNode($(this));
        });
        $(document).on('click', '.quote', pushCart);
    }
};

module.export = page.init();